<!DOCTYPE html>
<html lang="en">

<!-- Head tag -->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="android mio4kon mio">
    <meta name="keyword"  content="">
    <link rel="shortcut icon" href="/img/favicon.ico">

    <title>
        
          Mio4kon的博客 | Mio4kon&#39;s Blog
        
    </title>

    <link rel="canonical" href="http://mio4kon.com/page/4/">

    <!-- Bootstrap Core CSS -->
    <link rel="stylesheet" href="/css/bootstrap.min.css">

    <!-- Custom CSS -->
    <link rel="stylesheet" href="/css/hux-blog.min.css">

    <!-- Pygments Highlight CSS -->
    <link rel="stylesheet" href="/css/highlight.css">

    <!-- Custom Fonts -->
    <!-- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> -->
    <!-- Hux change font-awesome CDN to qiniu -->
    <link href="https://cdn.staticfile.org/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">


    <!-- Hux Delete, sad but pending in China
    <link href='http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/
    css'>
    -->


    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- ga & ba script hoook -->
    <script></script>
</head>


<!-- hack iOS CSS :active style -->
<body ontouchstart="">

    <!-- Navigation -->
<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header page-scroll">
            <button type="button" class="navbar-toggle">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">Mio4kon</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <!-- Known Issue, found by Hux:
            <nav>'s height woule be hold on by its content.
            so, when navbar scale out, the <nav> will cover tags.
            also mask any touch event of tags, unfortunately.
        -->
        <div id="huxblog_navbar">
            <div class="navbar-collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="/">Home</a>
                    </li>

                    

                        
                    

                        
                        <li>
                            <a href="/about/">About</a>
                        </li>
                        
                    

                        
                        <li>
                            <a href="/archives/">Archives</a>
                        </li>
                        
                    

                        
                        <li>
                            <a href="/tags/">Tags</a>
                        </li>
                        
                    
                    
                </ul>
            </div>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container -->
</nav>
<script>
    // Drop Bootstarp low-performance Navbar
    // Use customize navbar with high-quality material design animation
    // in high-perf jank-free CSS3 implementation
    var $body   = document.body;
    var $toggle = document.querySelector('.navbar-toggle');
    var $navbar = document.querySelector('#huxblog_navbar');
    var $collapse = document.querySelector('.navbar-collapse');

    $toggle.addEventListener('click', handleMagic)
    function handleMagic(e){
        if ($navbar.className.indexOf('in') > 0) {
        // CLOSE
            $navbar.className = " ";
            // wait until animation end.
            setTimeout(function(){
                // prevent frequently toggle
                if($navbar.className.indexOf('in') < 0) {
                    $collapse.style.height = "0px"
                }
            },400)
        }else{
        // OPEN
            $collapse.style.height = "auto"
            $navbar.className += " in";
        }
    }
</script>


    <!-- Main Content -->
    <!-- Page Header -->
<header class="intro-header" style="background-image: url('/img/home-bg.jpg')">
    <div class="container">
        <div class="row">
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 ">
                <div class="site-heading">
                    <h1>Mio4kon</h1>
                    <!--<hr class="small">-->
                    <span class="subheading">扶我起来 我还能送!</span>
                </div>
            </div>
        </div>
    </div>
</header>



<!-- Main Content -->
<div class="container">
    <div class="row">
        

<!-- USE SIDEBAR -->
    <!-- Post Container -->
            <div class="
                col-lg-8 col-lg-offset-1
                col-md-8 col-md-offset-1
                col-sm-12
                col-xs-12
                post-container
            ">
            
                <!-- Main Content -->


<div class="post-preview">

    <a href="/2014/12/19/一步步撸出图片加载框架ImageLoader /">
        <h2 class="post-title">
            一步步撸出图片加载框架
        </h2>
        <h3 class="post-subtitle">
            超实用,超轻量的图片框架
        </h3>
        <div class="post-content-preview">
            难得空闲,看了鸿洋大神的博客,将代码整合了一下撸出一个简单的图片加载框架,超实用,超轻量,只有2个类(≖ ‿ ≖)✧

参考链接:  鸿洋大神的博客

效果和代码与鸿洋大神博客所写的差不多,主要是加强对这种图片加载框架的理解.
准备工作:图片工具类压缩图片 
/**
 * 计算图片相对于ImageView控件的压缩比例
 *
 * @param options
 * @param reqWi......
        </div>
    </a>
    <p class="post-meta">
        Posted by Mio4kon on
        2014-12-19
    </p>

</div>
<hr>

<div class="post-preview">

    <a href="/2014/12/01/Wiki/">
        <h2 class="post-title">
            Android wiki
        </h2>
        <h3 class="post-subtitle">
            
        </h3>
        <div class="post-content-preview">
            Wiki不定时更新(深坑,太监)
Paint抗锯齿Paint paint = new Paint (Paint.ANTI_ALIAS_FLAG);只画边框paint.setStyle(Paint.Style.STROKE); 
Canvastranslate
移动原点，默认的原点(0,0)是在屏幕左上角的,通过translate（x，y）把点（x，y）作为原点.canvas.translat......
        </div>
    </a>
    <p class="post-meta">
        Posted by Mio4kon on
        2014-12-01
    </p>

</div>
<hr>

<div class="post-preview">

    <a href="/2014/11/29/navigation_drawer/">
        <h2 class="post-title">
            Navigation Drawer 打造MD侧边栏
        </h2>
        <h3 class="post-subtitle">
            Google原生侧边菜单 Navigation Drawer! 
        </h3>
        <div class="post-content-preview">
            Navigation Drawer参考链接:官方API丨博客
使用方法Xml写入控件&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
                xmlns:tools=&quot;http://schemas.android.com/tools&......
        </div>
    </a>
    <p class="post-meta">
        Posted by Mio4kon on
        2014-11-29
    </p>

</div>
<hr>

<div class="post-preview">

    <a href="/2014/11/29/toolbar/">
        <h2 class="post-title">
            ToolBar 打造MD TitleBar
        </h2>
        <h3 class="post-subtitle">
            取代ActionBar的控件,ToolBar!
        </h3>
        <div class="post-content-preview">
            ToolBar
参考链接:官方API 博客

使用方法
首先要禁用ActionBar,方法如下:


最简单的方式就说继承Theme.AppCompat.NoActionBar
或者用下面的方式


&lt;application
        android:allowBackup=&quot;true&quot;
        android:icon=&quot;@drawable......
        </div>
    </a>
    <p class="post-meta">
        Posted by Mio4kon on
        2014-11-29
    </p>

</div>
<hr>

<div class="post-preview">

    <a href="/2014/11/28/Gradle语法总结/">
        <h2 class="post-title">
            Gradle语法总结
        </h2>
        <h3 class="post-subtitle">
            Gradle学习总结
        </h3>
        <div class="post-content-preview">
            安装Gradle简单来说就是下载-&gt;解压-&gt;配置环境变量.然后利用gradle -v 来查看是否安装成功.
gradle简单入门Hello World!
在任意文件夹中建立build.gradle文件,然后输入

1234task helloWorld &lt;&lt; &#123;	println "hello World!!!"&#125;

注:&lt;&lt;代表追加的意......
        </div>
    </a>
    <p class="post-meta">
        Posted by Mio4kon on
        2014-11-28
    </p>

</div>
<hr>

<div class="post-preview">

    <a href="/2014/11/16/Android 动画 -帧动画/">
        <h2 class="post-title">
            Android 动画----帧动画
        </h2>
        <h3 class="post-subtitle">
            帧动画的使用,以及使用中遇到的问题(stop无效)
        </h3>
        <div class="post-content-preview">
            
存档  

如果android:pivotX=”N”,则表示绝对坐标比例，即屏幕的坐标比例。
如果android:pivotX=”N%”,则表示相对自身的坐标比例。
如果android:pivotX=”N%p”,则表示相对于父控件的坐标比例。
setStartOffset(long startOffset) 延迟执行动画 
setFillAfter(true) 动画完成后保持不变
帧动画&......
        </div>
    </a>
    <p class="post-meta">
        Posted by Mio4kon on
        2014-11-16
    </p>

</div>
<hr>

<div class="post-preview">

    <a href="/2014/11/09/volley-base/">
        <h2 class="post-title">
            volley-base
        </h2>
        <h3 class="post-subtitle">
            volley base类.简单的封装了volley的使用!(过时)
        </h3>
        <div class="post-content-preview">
            此base类在jsonRequest的基础上封装,好处: 

使用简单
容易对所有请求的全局控制,如sessionId过期既要求登陆.请求时弹出progressDialog等.
对登陆超时进行统一处理,当然也可以自定义处理.

基本的请求方法POST,在这里可以控制如:判断是否有特殊请求(sessionId的请求),如果有进行特殊处理等

/**
 * 
 * @Description: 最......
        </div>
    </a>
    <p class="post-meta">
        Posted by Mio4kon on
        2014-11-09
    </p>

</div>
<hr>

<div class="post-preview">

    <a href="/2014/10/09/Android 获取通讯录联系人/">
        <h2 class="post-title">
            Android 获取通讯录联系人
        </h2>
        <h3 class="post-subtitle">
            获取手机通讯录联系人的姓名,电话,地址等
        </h3>
        <div class="post-content-preview">
            联系人的bean:
/**
 * 姓名
 */
private String contactName;
/**
 * 电话号码
 */
private String contactPhone;
/**
 * email
 */
private String contactEmail;
/**
 * 地址
 */
private String contactAddress;
/**
 * 机构......
        </div>
    </a>
    <p class="post-meta">
        Posted by Mio4kon on
        2014-10-09
    </p>

</div>
<hr>

<div class="post-preview">

    <a href="/2014/09/12/现在项目中的架构/">
        <h2 class="post-title">
            公司项目中部分SDK的架构方式(beta 2.0)
        </h2>
        <h3 class="post-subtitle">
            mvp模式实战
        </h3>
        <div class="post-content-preview">
            
引言:为了使公司的支付等功能,多个APP可以公用,将其业务功能封装到SDK中.减少开发成本.该SDK的编写基于MVP模式.MVP相对于MVC模式的好处在于,方便测试,View层代码避免臃肿等.


model层使用Volley进行访问网络.public class UserModel extends BaseRequestModel implements IUserModel {
    ......
        </div>
    </a>
    <p class="post-meta">
        Posted by Mio4kon on
        2014-09-12
    </p>

</div>
<hr>

<div class="post-preview">

    <a href="/2014/05/21/hexo命令与md语法/">
        <h2 class="post-title">
            Hexo 命令 与 MarkDown 语法
        </h2>
        <h3 class="post-subtitle">
            hexo的一些常用的命令以及MarkDown的一些语法知识
        </h3>
        <div class="post-content-preview">
            常用命令hexo new &quot;postName&quot; #新建文章hexo new page &quot;pageName&quot;     #新建页面hexo generate #生成静态页面至public目录hexo server #开启预览访问端口（默认端口4000，&#39;ctrl + c&#39;关闭server）hexo deploy #将.deploy目录部署到......
        </div>
    </a>
    <p class="post-meta">
        Posted by Mio4kon on
        2014-05-21
    </p>

</div>
<hr>



<!-- Pager -->

<ul class="pager">
    
        <li class="previous">
            <a href="/page/3/">&larr; Newer Posts</a>
        </li>
    
    
</ul>



                <!-- 如果开启评论功能 -->
                

            </div>
    <!-- Sidebar Container -->
            <div class="
                col-lg-3 col-lg-offset-0
                col-md-3 col-md-offset-0
                col-sm-12
                col-xs-12
                sidebar-container
            ">
                <!-- Featured Tags -->
                
                <section>
                    <!-- no hr -->
                    <h5><a href="/tags/">FEATURED TAGS</a></h5>
                    <div class="tags">
                        
                            
                        
                            
                        
                            
                        
                            
                        
                            
                            <a href="/tags/#移动自动化测试" title="移动自动化测试" rel="8">移动自动化测试</a>
                            
                        
                            
                        
                            
                        
                            
                        
                            
                        
                            
                            <a href="/tags/#Kotlin" title="Kotlin" rel="2">Kotlin</a>
                            
                        
                            
                        
                            
                        
                            
                            <a href="/tags/#Material Design" title="Material Design" rel="3">Material Design</a>
                            
                        
                            
                        
                            
                        
                            
                        
                            
                        
                            
                        
                            
                        
                            
                        
                            
                            <a href="/tags/#Head First,设计模式" title="Head First,设计模式" rel="2">Head First,设计模式</a>
                            
                        
                            
                        
                            
                        
                            
                        
                            
                            <a href="/tags/#源码分析" title="源码分析" rel="2">源码分析</a>
                            
                        
                    </div>
                </section>
                

                <!-- Short About -->
                <section class="visible-md visible-lg">
                    <hr><h5><a href="/about/">ABOUT ME</a></h5>
                    <div class="short-about">

                        
                            <img src="/img/Mio-Akiyama.jpg" />
                        

                        
                            <p>扶我起来,我还能送!</p>
                        

                        <!-- SNS Link -->
                        <ul class="list-inline">
                            
                            
                            

                            
                                <li>
                                    <a target="_blank" href="http://weibo.com/u/3198010790">
                                        <span class="fa-stack fa-lg">
                                            <i class="fa fa-circle fa-stack-2x"></i>
                                            <i class="fa fa-weibo fa-stack-1x fa-inverse"></i>
                                        </span>
                                    </a>
                                </li>
                            

                            

                            
                                <li>
                                    <a target="_blank"  href="https://github.com/Mio4kon">
                                        <span class="fa-stack fa-lg">
                                            <i class="fa fa-circle fa-stack-2x"></i>
                                            <i class="fa fa-github fa-stack-1x fa-inverse"></i>
                                        </span>
                                    </a>
                                </li>
                            
                            
                            
                            
                        </ul>
                    </div>
                </section>
                
                <!-- Friends Blog -->
                
                <hr>
                <h5>FRIENDS</h5>
                <ul class="list-inline">

                    
                        <li><a href="http://lrd.ele.me/" target="_blank">lrd ele&#39;s Blog</a></li>
                    
                </ul>
                
            </div>
        
    </div>
</div>


    <!-- Footer -->
    <!-- Footer -->
<footer>
    <div class="container">
        <div class="row">
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                <ul class="list-inline text-center">
                
                
                

                
                    <li>
                        <a target="_blank" href="http://weibo.com/u/3198010790">
                            <span class="fa-stack fa-lg">
                                <i class="fa fa-circle fa-stack-2x"></i>
                                <i class="fa fa-weibo fa-stack-1x fa-inverse"></i>
                            </span>
                        </a>
                    </li>
                

                

                
                    <li>
                        <a target="_blank"  href="https://github.com/Mio4kon">
                            <span class="fa-stack fa-lg">
                                <i class="fa fa-circle fa-stack-2x"></i>
                                <i class="fa fa-github fa-stack-1x fa-inverse"></i>
                            </span>
                        </a>
                    </li>
                

                

                </ul>
                <p class="copyright text-muted">
                    Copyright &copy; Mio4kon 2019 
                    <br>
                    Theme by <a href="http://huangxuan.me">Hux</a> 
                    <span style="display: inline-block; margin: 0 5px;">
                        <i class="fa fa-heart"></i>
                    </span> 
                    Ported by <a href="http://blog.kaijun.rocks">Kaijun</a> | 
                    <iframe
                        style="margin-left: 2px; margin-bottom:-5px;"
                        frameborder="0" scrolling="0" width="91px" height="20px"
                        src="https://ghbtns.com/github-btn.html?user=kaijun&repo=hexo-theme-huxblog&type=star&count=true" >
                    </iframe>
                </p>
            </div>
        </div>
    </div>
</footer>

<!-- jQuery -->
<script src="/js/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="/js/bootstrap.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="/js/hux-blog.min.js"></script>


<!-- async load function -->
<script>
    function async(u, c) {
      var d = document, t = 'script',
          o = d.createElement(t),
          s = d.getElementsByTagName(t)[0];
      o.src = u;
      if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
      s.parentNode.insertBefore(o, s);
    }
</script>

<!-- 
     Because of the native support for backtick-style fenced code blocks 
     right within the Markdown is landed in Github Pages, 
     From V1.6, There is no need for Highlight.js, 
     so Huxblog drops it officially.

     - https://github.com/blog/2100-github-pages-now-faster-and-simpler-with-jekyll-3-0  
     - https://help.github.com/articles/creating-and-highlighting-code-blocks/    
-->
<!--
    <script>
        async("http://cdn.bootcss.com/highlight.js/8.6/highlight.min.js", function(){
            hljs.initHighlightingOnLoad();
        })
    </script>
    <link href="http://cdn.bootcss.com/highlight.js/8.6/styles/github.min.css" rel="stylesheet">
-->


<!-- jquery.tagcloud.js -->
<script>
    // only load tagcloud.js in tag.html
    if($('#tag_cloud').length !== 0){
        async("http://mio4kon.com/js/jquery.tagcloud.js",function(){
            $.fn.tagcloud.defaults = {
                //size: {start: 1, end: 1, unit: 'em'},
                color: {start: '#bbbbee', end: '#0085a1'},
            };
            $('#tag_cloud a').tagcloud();
        })
    }
</script>

<!--fastClick.js -->
<script>
    async("https://cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js", function(){
        var $nav = document.querySelector("nav");
        if($nav) FastClick.attach($nav);
    })
</script>


<!-- Google Analytics -->




<!-- Baidu Tongji -->


<!-- Side Catalog -->





<!-- Image to hack wechat -->
<img src="http://mio4kon.com/img/icon_wechat.png" width="0" height="0" />
<!-- Migrate from head to bottom, no longer block render and still work -->

</body>

</html>
